/* Personal Baseball Instructor Gallery*/
* {box-sizing:border-box}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Georgia, 'Times New Roman', Times, serif;
}



.background {
  position: relative;
  z-index: 1;

}

/* Add the actual semi-transparent background image */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: url('background-image2.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
  filter: blur(3px);
}



nav{
    position: relative;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color:rgba(0,0,0,0.5);
}

nav, nav ul, nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* Hamburger button styles */
.hamburger {
  width: 40px;      /* wider than current 25px */
  height: 40px;     /* taller than current 20px */
  padding: 8px;     /* optional, to add some inner spacing */
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 15px;
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid white;
  border-radius: 6px;
  box-sizing: border-box;
}

.hamburger .bar {
  height: 3px;
  background: white;
  width: 24px;
  margin: 3px 0;
  transition: 0.4s;
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5.75px, 5.5px);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -5px);
}

.hamburger:hover{
  transform: scale(1.2);
  transition: transform 0.4s ease-in-out;
  border-color: white;
}

nav li.home{
    float: left;
  }
  
  nav li.MyStory{
    font-style: italic;
  }

  li {
    float: right;
}
  
li a {
    display: block;
    color: white;
    text-align: center;
    padding: 30px 12px;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 10px;
    text-transform: uppercase;
    transition: transform 0.4s ease, color 0.4s ease;
}
  
li a:hover:not(.active) {
    transform: scale(1.2);
    color: black;
}

li.logo{
  float: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

li.logo img{
  height: 100px;

}

h1{
   color: white;
  text-align: center;
  text-shadow:
    /* Black outline around main text */
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black,

    /* "Shadow" layer (2px offset, white text duplicated with black outline) */
    2px 2px 0 white,
    1px 1px 0 black,
    3px 3px 0 black;

    text-transform: uppercase;
}
p.a{
    text-align: center;
}

h2{
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 2px black;
    
}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  width: 75%;
  height: 475px;
  position: relative;
  margin: auto;
  overflow: hidden;
  background-color: rgba(0,0,0,0.2);

}

.slideshow-container img{
  max-width: 100%;
  height: 100%;
  object-fit: contain; 
  overflow: hidden;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  
  display: block;
  width: 100%;
  height: 100%; /* Important */
  background-color: rgba(0,0,0,0.2);
  justify-content: center;
  display: flex;
  transition: opacity 2s ease-in-out


}

.mySlides:first-child {
  opacity: 1; /* Ensure the first slide is visible on page load */
  position: relative;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -35px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 35px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

h3{
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    color: white;
    text-shadow: 2px 2px 2px black;
    
    
}

/* Slideshow container */
.slideshow-container2 {
  max-width: 100%;
  width: 75%;
  height: 475px;
  position: relative;
  margin: auto;
  overflow: hidden;
  background-color: rgba(0,0,0,0.2);


}


.slideshow-container2 video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  display: block;
  
  background-color: rgba(0,0,0,0.2); 
}



/* Hide the images by default */
.mySlides2 {
  
  display: none;
  width: 100%;
  height: 100%; /* Important */
  background-color: rgba(0,0,0,0.2);
  justify-content: center;
  display: flex;


}
.mySlides2.active{
  display: flex;
  position: relative;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.2);
}

.mySlides2:first-child {
  opacity: 1; /* Ensure the first slide is visible on page load */
  position: relative;
}

/* Next & previous buttons */
.prev2, .next2 {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -35px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 35px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next2 {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev2:hover, .next2:hover {
  background-color: rgba(0,0,0,0.8);
}


/* Footer */
.footerBottom{
   
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    text-align: center;
    font-size: 15px;
}

.footerBottom p{
    color: white;
}

.designer{
    text-transform: uppercase;
    font-weight: 400;
}

@media (max-width: 800px){

  nav li.home{
    float: none;
  }

  li{
    float: none;
  }

  li a{
    padding: 0px 12px;
  }

  li.logo img{
    height: 125px;
  }

  

  
    /* Slideshow container */
    .slideshow-container {
      max-width: 100%;
      width: 100%;
      height: 350px;
      position: relative;
      margin: auto;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.2);
    
  }

  .slideshow-container2 {
      max-width: 100%;
      width: 100%;
      height: 350px;
      position: relative;
      margin: auto;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.2);
    
  }

   .hamburger {
    position: absolute; /* stays on top */
    top: 15px;
    left: 15px;
    z-index: 1001;
    display: flex; /* make sure it shows on mobile */
  }
  
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(-80px);
  pointer-events: none; /* Disable interaction when hidden */

  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Enable interaction when visible */
}


.mobile-menu li {
    margin: 70px 0; /* adds vertical space between each tab */
}
  nav.mobile-menu-open li.logo img {
    height: 100px;
    
  }

  .mobile-menu li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s;
}

  nav{
    display: block;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5); /* dark transparent to make sure it's visible */
    display: flex;
    align-items: center;
    height: 125px;
  }

}